<?php

namespace App\Models\Game;

use Illuminate\Database\Eloquent\Model;

class SortPet extends Model
{

    protected $table = "sort_pet";

    public function __construct(array $attributes = [])
    {

        global $gameArea;  if (!$gameArea) $gameArea = 0;
        $this->setConnection('function_'.$gameArea);
        parent::__construct($attributes);
    }
}
